import request from '@/utils/request'
export default{

    //添加小节
    addVideo(video){
        return request({
            url:'/eduservice/video/addVideo',
            method:'post',
            data:video
        })

    },

    //编辑小节 
    editVideo(videoId){
        return request({
            url:'/eduservice/video/queryVideo/'+videoId,
            method:'post'
        })
    },

    //删除小节
    delVideo(videoId){
        return request({
            url:`/eduservice/video/${videoId}`,
            method:'delete'
        })
    },

    //修改小节
    updateVideo(video){
        return request({
            url:'/eduservice/video/updateVideo',
            method:'post',
            data:video
        })
    }


}